import React from 'react';
import { renderRoutes } from 'react-router-config';
import { Helmet } from 'react-helmet';
import { withRouter } from 'react-router-dom';
import './index.less';

class PageWrapper extends React.Component {

  constructor(props) {
    super(props);
    this.state = {
    };
  }
  componentDidMount() {
  }

  render() {
    const { route } = this.props;
    return (
      <article className="common-wrapper">
        <Helmet>
          <title>计划详情页面</title>
          <meta name="description" content="计划详情页面" />
          <meta name="keywords" content="计划详情页面" />
        </Helmet>
        <header className="common-header">
          计划详情
        </header>
        <div className="common-content">
          {renderRoutes(route.routes)}
        </div>
      </article>
    );
  }
}

export default withRouter(PageWrapper);